package com.lc.question.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

//问题
@ApiModel("问题实体类")
public class Question {

    @ApiModelProperty("问题ID")
    private int que_Id;
    @ApiModelProperty("编号ID")
    private int num_Id;
    @ApiModelProperty("计划ID")
    private int plan_Id;
    @ApiModelProperty("用户ID")
    private String user_Id;
    @ApiModelProperty("问题的标题")
    private String que_title;
    @ApiModelProperty("问题的内容")
    private String que_content;
    @ApiModelProperty("问题的状态")
    private int que_status;     //0表示为题目，1表示为填写内容
    @ApiModelProperty("问题的类型")
    private String que_type;
    @ApiModelProperty("问卷表ID")
    private String tab_Id;
    @ApiModelProperty("问题排序")
    private int grade;//排序 1顺序，0逆序
    @ApiModelProperty("是否必填")
    private int b_must;
    @ApiModelProperty("是否填写其他")
    private int b_other;//是否填写其他
    @ApiModelProperty("备注")
    private String t_text;

    public Question(int que_Id, int num_Id, int plan_Id, String user_Id, String que_title, String que_content, int que_status, String que_type, String tab_Id, int grade, int b_must, int b_other) {
        this.que_Id = que_Id;
        this.num_Id = num_Id;
        this.plan_Id = plan_Id;
        this.user_Id = user_Id;
        this.que_title = que_title;
        this.que_content = que_content;
        this.que_status = que_status;
        this.que_type = que_type;
        this.tab_Id = tab_Id;
        this.grade = grade;
        this.b_must = b_must;
        this.b_other = b_other;
    }

    public Question() {
    }

    public Question(int que_Id, int num_Id, int plan_Id, String user_Id, String que_title, String que_content, int que_status, String que_type, String tab_Id, int grade, int b_must, int b_other, String t_text) {
        this.que_Id = que_Id;
        this.num_Id = num_Id;
        this.plan_Id = plan_Id;
        this.user_Id = user_Id;
        this.que_title = que_title;
        this.que_content = que_content;
        this.que_status = que_status;
        this.que_type = que_type;
        this.tab_Id = tab_Id;
        this.grade = grade;
        this.b_must = b_must;
        this.b_other = b_other;
        if (t_text==null){
            this.t_text = "";
        } else{
            this.t_text = t_text;
        }
    }

//    public Question(int que_Id, int num_Id, String user_Id, String que_title, String que_content, int que_status, String que_type, String tab_Id, int grade, int b_must, int b_other, String t_text) {
//        this.que_Id = que_Id;
//        this.num_Id = num_Id;
//        this.user_Id = user_Id;
//        this.que_title = que_title;
//        this.que_content = que_content;
//        this.que_status = que_status;
//        this.que_type = que_type;
//        this.tab_Id = tab_Id;
//        this.grade = grade;
//        this.b_must = b_must;
//        this.b_other = b_other;
//        if (t_text==null){
//            this.t_text = "";
//        } else{
//            this.t_text = t_text;
//        }
//    }



    public int getPlan_Id() {
        return plan_Id;
    }

    public void setPlan_Id(int plan_Id) {
        this.plan_Id = plan_Id;
    }

    public String getUser_Id() {
        return user_Id;
    }

    public void setUser_Id(String user_Id) {
        this.user_Id = user_Id;
    }

    public int getQue_status() {
        return que_status;
    }

    public void setQue_status(int que_status) {
        this.que_status = que_status;
    }

    public int getQue_Id() {
        return que_Id;
    }

    public void setQue_Id(int que_Id) {
        this.que_Id = que_Id;
    }

    public int getNum_Id() {
        return num_Id;
    }

    public void setNum_Id(int num_Id) {
        this.num_Id = num_Id;
    }

    public String getQue_title() {
        return que_title;
    }

    public void setQue_title(String que_title) {
        this.que_title = que_title;
    }

    public String getQue_content() {
        return que_content;
    }

    public void setQue_content(String que_content) {
        this.que_content = que_content;
    }

    public String getQue_type() {
        return que_type;
    }

    public void setQue_type(String que_type) {
        this.que_type = que_type;
    }

    public String getTab_Id() {
        return tab_Id;
    }

    public void setTab_Id(String tab_Id) {
        this.tab_Id = tab_Id;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public int getB_must() {
        return b_must;
    }

    public void setB_must(int b_must) {
        this.b_must = b_must;
    }

    public int getB_other() {
        return b_other;
    }

    public void setB_other(int b_other) {
        this.b_other = b_other;
    }

    public String getT_text() {
        return t_text;
    }

    public void setT_text(String t_text) {
        this.t_text = t_text;
    }
}
